.class public final Lcom/estrongs/android/pop/wxapi/h;
.super Ljava/lang/Object;
.source "WxApiManager.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/wxapi/h$d;,
        Lcom/estrongs/android/pop/wxapi/h$f;,
        Lcom/estrongs/android/pop/wxapi/h$e;
    }
.end annotation


# static fields
.field private static final d:Lcom/estrongs/android/pop/wxapi/h;


# instance fields
.field private a:Les/g00;

.field private b:Lcom/tencent/mm/opensdk/openapi/IWXAPI;

.field private c:Les/h00;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Lcom/estrongs/android/pop/wxapi/h;

    invoke-direct {v0}, Lcom/estrongs/android/pop/wxapi/h;-><init>()V

    sput-object v0, Lcom/estrongs/android/pop/wxapi/h;->d:Lcom/estrongs/android/pop/wxapi/h;

    return-void
.end method

.method private constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Application;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "wx31ec6912169df550"

    const/4 v2, 0x0

    .line 3
    invoke-static {v0, v1, v2}, Lcom/tencent/mm/opensdk/openapi/WXAPIFactory;->createWXAPI(Landroid/content/Context;Ljava/lang/String;Z)Lcom/tencent/mm/opensdk/openapi/IWXAPI;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->b:Lcom/tencent/mm/opensdk/openapi/IWXAPI;

    .line 4
    invoke-interface {v0, v1}, Lcom/tencent/mm/opensdk/openapi/IWXAPI;->registerApp(Ljava/lang/String;)Z

    return-void
.end method

.method private a(Les/wk;Ljava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;
    .locals 6
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    const-string v0, ""

    .line 27
    invoke-static {}, Lcom/estrongs/android/util/j0;->a()Lokhttp3/OkHttpClient;

    move-result-object v1

    new-instance v2, Lokhttp3/Request$Builder;

    invoke-direct {v2}, Lokhttp3/Request$Builder;-><init>()V

    new-instance v3, Lokhttp3/FormBody$Builder;

    invoke-direct {v3}, Lokhttp3/FormBody$Builder;-><init>()V

    const-string v4, "pkg"

    const-string v5, "com.estrongs.android.pop"

    .line 28
    invoke-virtual {v3, v4, v5}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder;

    move-result-object v3

    .line 29
    invoke-virtual {p1}, Les/wk;->e()Les/dp;

    move-result-object p1

    iget-object p1, p1, Les/dp;->a:Ljava/lang/String;

    const-string v4, "itemId"

    invoke-virtual {v3, v4, p1}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder;

    move-result-object p1

    const-string v3, "ltoken"

    .line 30
    invoke-virtual {p1, v3, p2}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder;

    move-result-object p1

    .line 31
    invoke-virtual {p1}, Lokhttp3/FormBody$Builder;->build()Lokhttp3/FormBody;

    move-result-object p1

    .line 32
    invoke-virtual {v2, p1}, Lokhttp3/Request$Builder;->post(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;

    move-result-object p1

    const-string p2, "http://api-es.doglobal.net/pay/unified_order"

    .line 33
    invoke-virtual {p1, p2}, Lokhttp3/Request$Builder;->url(Ljava/lang/String;)Lokhttp3/Request$Builder;

    move-result-object p1

    .line 34
    invoke-virtual {p1}, Lokhttp3/Request$Builder;->build()Lokhttp3/Request;

    move-result-object p1

    .line 35
    invoke-virtual {v1, p1}, Lokhttp3/OkHttpClient;->newCall(Lokhttp3/Request;)Lokhttp3/Call;

    move-result-object p1

    const/4 p2, -0x2

    .line 36
    :try_start_0
    invoke-interface {p1}, Lokhttp3/Call;->execute()Lokhttp3/Response;

    move-result-object p1

    .line 37
    invoke-virtual {p1}, Lokhttp3/Response;->isSuccessful()Z

    move-result v1

    if-nez v1, :cond_1

    .line 38
    invoke-virtual {p1}, Lokhttp3/Response;->code()I

    move-result v1

    const/16 v2, 0x193

    if-ne v1, v2, :cond_0

    .line 39
    invoke-static {v2, v0}, Lcom/estrongs/android/pop/wxapi/h$e;->a(ILjava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object p1

    .line 40
    iput v2, p1, Lcom/estrongs/android/pop/wxapi/h$e;->a:I

    return-object p1

    :cond_0
    const/4 v1, -0x1

    .line 41
    invoke-virtual {p1}, Lokhttp3/Response;->code()I

    move-result p1

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p1

    invoke-static {v1, p1}, Lcom/estrongs/android/pop/wxapi/h$e;->a(ILjava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object p1

    return-object p1

    .line 42
    :cond_1
    invoke-virtual {p1}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;

    move-result-object p1

    if-nez p1, :cond_2

    .line 43
    invoke-static {p2, v0}, Lcom/estrongs/android/pop/wxapi/h$e;->a(ILjava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object p1

    return-object p1

    .line 44
    :cond_2
    invoke-virtual {p1}, Lokhttp3/ResponseBody;->string()Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 45
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 46
    invoke-static {p2, v0}, Lcom/estrongs/android/pop/wxapi/h$e;->a(ILjava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object p1

    return-object p1

    .line 47
    :cond_3
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/wxapi/h;->b(Ljava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object p1

    return-object p1

    .line 48
    :catch_0
    invoke-static {p2, v0}, Lcom/estrongs/android/pop/wxapi/h$e;->a(ILjava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object p1

    return-object p1
.end method

.method private a(I)V
    .locals 3

    .line 97
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/o;->c(Z)V

    .line 98
    iget-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->a:Les/g00;

    if-nez v0, :cond_0

    return-void

    .line 99
    :cond_0
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v2

    if-ne v1, v2, :cond_1

    .line 100
    invoke-interface {v0, p1}, Les/g00;->a(I)V

    goto :goto_0

    .line 101
    :cond_1
    new-instance v1, Lcom/estrongs/android/pop/wxapi/d;

    invoke-direct {v1, v0, p1}, Lcom/estrongs/android/pop/wxapi/d;-><init>(Les/g00;I)V

    invoke-static {v1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Runnable;)V

    :goto_0
    return-void
.end method

.method private a(Lcom/estrongs/android/pop/wxapi/h$d;)V
    .locals 3

    .line 104
    new-instance v0, Lokhttp3/Request$Builder;

    invoke-direct {v0}, Lokhttp3/Request$Builder;-><init>()V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "http://api-es.doglobal.net/order/wechat/v1/orders?ltoken="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 105
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/o;->B()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "&pkg="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "com.estrongs.android.pop"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 106
    invoke-virtual {v0, v1}, Lokhttp3/Request$Builder;->url(Ljava/lang/String;)Lokhttp3/Request$Builder;

    move-result-object v0

    .line 107
    invoke-virtual {v0}, Lokhttp3/Request$Builder;->build()Lokhttp3/Request;

    move-result-object v0

    .line 108
    invoke-static {}, Lcom/estrongs/android/util/j0;->a()Lokhttp3/OkHttpClient;

    move-result-object v1

    .line 109
    invoke-virtual {v1, v0}, Lokhttp3/OkHttpClient;->newCall(Lokhttp3/Request;)Lokhttp3/Call;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/wxapi/h$c;

    invoke-direct {v1, p0, p1}, Lcom/estrongs/android/pop/wxapi/h$c;-><init>(Lcom/estrongs/android/pop/wxapi/h;Lcom/estrongs/android/pop/wxapi/h$d;)V

    .line 110
    invoke-interface {v0, v1}, Lokhttp3/Call;->enqueue(Lokhttp3/Callback;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/wxapi/h;I)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/wxapi/h;->a(I)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/wxapi/h;Ljava/lang/String;Lcom/estrongs/android/pop/wxapi/h$d;)V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    .line 3
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/wxapi/h;->a(Ljava/lang/String;Lcom/estrongs/android/pop/wxapi/h$d;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/wxapi/h;Lorg/json/JSONObject;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/wxapi/h;->a(Lorg/json/JSONObject;)V

    return-void
.end method

.method static synthetic a(Lcom/tencent/mm/opensdk/modelpay/PayResp;Les/h00;ILjava/util/List;)V
    .locals 7

    .line 54
    invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :cond_0
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result p3

    const-string v0, ""

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz p3, :cond_6

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Lcom/estrongs/android/pop/wxapi/h$f;

    .line 55
    iget-object v3, p3, Lcom/estrongs/android/pop/wxapi/h$f;->b:Ljava/lang/String;

    iget-object v4, p0, Lcom/tencent/mm/opensdk/modelpay/PayResp;->prepayId:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    iget-object v3, p3, Lcom/estrongs/android/pop/wxapi/h$f;->c:Ljava/lang/String;

    const-string v4, "SUCCESS"

    .line 56
    invoke-virtual {v4, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 57
    iget-wide v3, p3, Lcom/estrongs/android/pop/wxapi/h$f;->g:J

    .line 58
    iget-wide p2, p3, Lcom/estrongs/android/pop/wxapi/h$f;->f:J

    const-wide/16 v5, -0x1

    cmp-long p0, v3, v5

    if-nez p0, :cond_1

    const/4 p0, 0x1

    :goto_0
    const/4 p2, 0x1

    goto :goto_1

    :cond_1
    cmp-long p0, v3, p2

    if-lez p0, :cond_2

    const/4 p0, 0x0

    goto :goto_0

    :cond_2
    const/4 p0, 0x0

    const/4 p2, 0x0

    .line 59
    :goto_1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p3

    invoke-virtual {p3, p0}, Lcom/estrongs/android/pop/l;->k(Z)V

    if-nez p2, :cond_3

    .line 60
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p0

    invoke-virtual {p0, v1}, Lcom/estrongs/android/pop/l;->l(Z)V

    .line 61
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p0

    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/l;->i0(Ljava/lang/String;)V

    .line 62
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object p0

    invoke-virtual {p0, v1}, Les/b00;->b(Z)V

    goto :goto_3

    .line 63
    :cond_3
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object p0

    invoke-virtual {p0}, Les/b00;->i()Z

    move-result p0

    .line 64
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p2

    invoke-virtual {p2, v2}, Lcom/estrongs/android/pop/l;->l(Z)V

    .line 65
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p2

    invoke-virtual {p2, v3, v4}, Lcom/estrongs/android/pop/l;->h(J)V

    if-eqz p0, :cond_4

    .line 66
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object p0

    invoke-virtual {p0}, Les/b00;->m()V

    goto :goto_2

    .line 67
    :cond_4
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object p0

    invoke-virtual {p0, v2}, Les/b00;->b(Z)V

    :goto_2
    if-eqz p1, :cond_5

    .line 68
    invoke-interface {p1}, Les/h00;->onSuccess()V

    :cond_5
    const/4 v1, 0x1

    :cond_6
    :goto_3
    if-nez v1, :cond_7

    if-eqz p1, :cond_7

    const/4 p0, -0x5

    .line 69
    invoke-interface {p1, p0, v0}, Les/h00;->a(ILjava/lang/String;)V

    :cond_7
    return-void
.end method

.method static synthetic a(Les/g00;I)V
    .locals 0

    .line 102
    invoke-interface {p0, p1}, Les/g00;->a(I)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    .line 75
    new-instance v0, Lokhttp3/Request$Builder;

    invoke-direct {v0}, Lokhttp3/Request$Builder;-><init>()V

    new-instance v1, Lokhttp3/FormBody$Builder;

    invoke-direct {v1}, Lokhttp3/FormBody$Builder;-><init>()V

    const-string v2, "code"

    .line 76
    invoke-virtual {v1, v2, p1}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder;

    move-result-object p1

    const-string v1, "pkg"

    const-string v2, "com.estrongs.android.pop"

    .line 77
    invoke-virtual {p1, v1, v2}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder;

    move-result-object p1

    .line 78
    invoke-virtual {p1}, Lokhttp3/FormBody$Builder;->build()Lokhttp3/FormBody;

    move-result-object p1

    .line 79
    invoke-virtual {v0, p1}, Lokhttp3/Request$Builder;->post(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;

    move-result-object p1

    const-string v0, "http://api-es.doglobal.net/user/wechat_login"

    .line 80
    invoke-virtual {p1, v0}, Lokhttp3/Request$Builder;->url(Ljava/lang/String;)Lokhttp3/Request$Builder;

    move-result-object p1

    .line 81
    invoke-virtual {p1}, Lokhttp3/Request$Builder;->build()Lokhttp3/Request;

    move-result-object p1

    .line 82
    invoke-static {}, Lcom/estrongs/android/util/j0;->a()Lokhttp3/OkHttpClient;

    move-result-object v0

    .line 83
    invoke-virtual {v0, p1}, Lokhttp3/OkHttpClient;->newCall(Lokhttp3/Request;)Lokhttp3/Call;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/pop/wxapi/h$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/wxapi/h$a;-><init>(Lcom/estrongs/android/pop/wxapi/h;)V

    .line 84
    invoke-interface {p1, v0}, Lokhttp3/Call;->enqueue(Lokhttp3/Callback;)V

    return-void
.end method

.method private a(Ljava/lang/String;Lcom/estrongs/android/pop/wxapi/h$d;)V
    .locals 27
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    move-object/from16 v0, p2

    .line 111
    new-instance v1, Lorg/json/JSONObject;

    move-object/from16 v2, p1

    invoke-direct {v1, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string v2, "ret"

    .line 112
    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v2

    const/16 v3, 0xc8

    if-eq v2, v3, :cond_0

    const/4 v1, -0x1

    .line 113
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    return-void

    :cond_0
    const-string v2, "result"

    .line 114
    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    const/4 v3, 0x0

    if-nez v2, :cond_1

    .line 115
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v3, v1}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    return-void

    :cond_1
    const-string v4, "orders"

    .line 116
    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    if-eqz v4, :cond_5

    .line 117
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v5

    if-nez v5, :cond_2

    goto :goto_1

    .line 118
    :cond_2
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v5

    .line 119
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    const-string v7, "serverTime"

    .line 120
    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v20

    const-wide/16 v14, 0x0

    const-string v1, "expireTime"

    .line 121
    invoke-virtual {v2, v1, v14, v15}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;J)J

    move-result-wide v1

    const-wide/16 v22, 0x3e8

    cmp-long v7, v1, v14

    if-lez v7, :cond_3

    mul-long v1, v1, v22

    :cond_3
    const/4 v7, 0x0

    :goto_0
    if-ge v7, v5, :cond_4

    .line 122
    invoke-virtual {v4, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 123
    new-instance v13, Lcom/estrongs/android/pop/wxapi/h$f;

    const-string v9, "itemId"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "prepayId"

    .line 124
    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    const-string v11, "status"

    .line 125
    invoke-virtual {v8, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    const-string v12, "transactionId"

    .line 126
    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v3, "paidTime"

    .line 127
    invoke-virtual {v8, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    move-object/from16 v24, v4

    const-string v4, "paidTimeSec"

    .line 128
    invoke-virtual {v8, v4, v14, v15}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;J)J

    move-result-wide v16

    mul-long v16, v16, v22

    move-object v8, v13

    move-object v4, v13

    move-object v13, v3

    move-wide/from16 v25, v14

    move-wide/from16 v14, v20

    move-wide/from16 v18, v1

    invoke-direct/range {v8 .. v19}, Lcom/estrongs/android/pop/wxapi/h$f;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJJ)V

    .line 129
    invoke-interface {v6, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v7, v7, 0x1

    move-object/from16 v4, v24

    move-wide/from16 v14, v25

    const/4 v3, 0x0

    goto :goto_0

    .line 130
    :cond_4
    invoke-interface {v0, v3, v6}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    return-void

    .line 131
    :cond_5
    :goto_1
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v3, v1}, Lcom/estrongs/android/pop/wxapi/h$d;->a(ILjava/util/List;)V

    return-void
.end method

.method private a(Lorg/json/JSONObject;)V
    .locals 3

    const-string v0, "ret"

    .line 85
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v0

    const/16 v1, 0xc8

    if-eq v0, v1, :cond_0

    const/4 p1, 0x3

    .line 86
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/wxapi/h;->a(I)V

    return-void

    :cond_0
    const-string v0, "result"

    .line 87
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p1

    if-nez p1, :cond_1

    const/4 p1, 0x2

    .line 88
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/wxapi/h;->a(I)V

    return-void

    :cond_1
    const-string v0, "nickname"

    .line 89
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "headImgUrl"

    .line 90
    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "loginToken"

    .line 91
    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 92
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v2

    .line 93
    invoke-virtual {v2, v0}, Lcom/estrongs/android/pop/o;->h(Ljava/lang/String;)V

    .line 94
    invoke-virtual {v2, v1}, Lcom/estrongs/android/pop/o;->g(Ljava/lang/String;)V

    .line 95
    invoke-virtual {v2, p1}, Lcom/estrongs/android/pop/o;->f(Ljava/lang/String;)V

    .line 96
    invoke-direct {p0}, Lcom/estrongs/android/pop/wxapi/h;->d()V

    return-void
.end method

.method private b(Ljava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;
    .locals 4

    const-string v0, ""

    const/4 v1, -0x3

    .line 2
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string p1, "ret"

    .line 3
    invoke-virtual {v2, p1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result p1

    const/16 v3, 0xc8

    if-eq p1, v3, :cond_0

    .line 4
    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/pop/wxapi/h$e;->a(ILjava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object v2

    .line 5
    iput p1, v2, Lcom/estrongs/android/pop/wxapi/h$e;->a:I

    return-object v2

    :cond_0
    const-string p1, "result"

    .line 6
    invoke-virtual {v2, p1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p1

    if-nez p1, :cond_1

    .line 7
    invoke-static {v1, v0}, Lcom/estrongs/android/pop/wxapi/h$e;->a(ILjava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object p1

    return-object p1

    .line 8
    :cond_1
    new-instance v2, Lcom/estrongs/android/pop/wxapi/h$e;

    const/4 v3, 0x0

    invoke-direct {v2, v3}, Lcom/estrongs/android/pop/wxapi/h$e;-><init>(Lcom/estrongs/android/pop/wxapi/h$a;)V

    const-string v3, "wx31ec6912169df550"

    .line 9
    iput-object v3, v2, Lcom/estrongs/android/pop/wxapi/h$e;->b:Ljava/lang/String;

    const-string v3, "prepayid"

    .line 10
    invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/estrongs/android/pop/wxapi/h$e;->c:Ljava/lang/String;

    const-string v3, "timestamp"

    .line 11
    invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/estrongs/android/pop/wxapi/h$e;->d:Ljava/lang/String;

    const-string v3, "partnerid"

    .line 12
    invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/estrongs/android/pop/wxapi/h$e;->e:Ljava/lang/String;

    const-string v3, "package"

    .line 13
    invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/estrongs/android/pop/wxapi/h$e;->f:Ljava/lang/String;

    const-string v3, "noncestr"

    .line 14
    invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/estrongs/android/pop/wxapi/h$e;->g:Ljava/lang/String;

    const-string v3, "sign"

    .line 15
    invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, v2, Lcom/estrongs/android/pop/wxapi/h$e;->h:Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    return-object v2

    .line 16
    :catch_0
    invoke-static {v1, v0}, Lcom/estrongs/android/pop/wxapi/h$e;->a(ILjava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object p1

    return-object p1
.end method

.method public static c()Lcom/estrongs/android/pop/wxapi/h;
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/wxapi/h;->d:Lcom/estrongs/android/pop/wxapi/h;

    return-object v0
.end method

.method private d()V
    .locals 3

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/o;->c(Z)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->a:Les/g00;

    if-nez v0, :cond_0

    return-void

    .line 3
    :cond_0
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v2

    if-ne v1, v2, :cond_1

    .line 4
    invoke-interface {v0}, Les/g00;->onSuccess()V

    goto :goto_0

    .line 5
    :cond_1
    invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    new-instance v1, Lcom/estrongs/android/pop/wxapi/g;

    invoke-direct {v1, v0}, Lcom/estrongs/android/pop/wxapi/g;-><init>(Les/g00;)V

    invoke-static {v1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Runnable;)V

    :goto_0
    return-void
.end method


# virtual methods
.method a(Landroid/content/Intent;Lcom/tencent/mm/opensdk/openapi/IWXAPIEventHandler;)V
    .locals 1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->b:Lcom/tencent/mm/opensdk/openapi/IWXAPI;

    invoke-interface {v0, p1, p2}, Lcom/tencent/mm/opensdk/openapi/IWXAPI;->handleIntent(Landroid/content/Intent;Lcom/tencent/mm/opensdk/openapi/IWXAPIEventHandler;)Z

    return-void
.end method

.method public synthetic a(Lcom/estrongs/android/pop/wxapi/h$e;)V
    .locals 3

    .line 20
    iget-boolean v0, p1, Lcom/estrongs/android/pop/wxapi/h$e;->i:Z

    if-eqz v0, :cond_0

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->b:Lcom/tencent/mm/opensdk/openapi/IWXAPI;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/wxapi/h$e;->a()Lcom/tencent/mm/opensdk/modelpay/PayReq;

    move-result-object p1

    invoke-interface {v0, p1}, Lcom/tencent/mm/opensdk/openapi/IWXAPI;->sendReq(Lcom/tencent/mm/opensdk/modelbase/BaseReq;)Z

    return-void

    .line 22
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->c:Les/h00;

    if-eqz v0, :cond_2

    .line 23
    iget v1, p1, Lcom/estrongs/android/pop/wxapi/h$e;->j:I

    const/16 v2, 0x193

    if-ne v1, v2, :cond_1

    .line 24
    invoke-interface {v0}, Les/h00;->a()V

    goto :goto_0

    .line 25
    :cond_1
    iget-object p1, p1, Lcom/estrongs/android/pop/wxapi/h$e;->k:Ljava/lang/String;

    invoke-interface {v0, v1, p1}, Les/h00;->a(ILjava/lang/String;)V

    :goto_0
    const/4 p1, 0x0

    .line 26
    iput-object p1, p0, Lcom/estrongs/android/pop/wxapi/h;->c:Les/h00;

    :cond_2
    return-void
.end method

.method a(Lcom/tencent/mm/opensdk/modelmsg/SendAuth$Resp;)V
    .locals 3

    .line 70
    iget-object v0, p1, Lcom/tencent/mm/opensdk/modelmsg/SendAuth$Resp;->state:Ljava/lang/String;

    const-string v1, "es_wx_lg"

    invoke-static {v1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    .line 71
    invoke-direct {p0, v1}, Lcom/estrongs/android/pop/wxapi/h;->a(I)V

    return-void

    .line 72
    :cond_0
    iget v0, p1, Lcom/tencent/mm/opensdk/modelbase/BaseResp;->errCode:I

    const/4 v2, -0x4

    if-eq v0, v2, :cond_2

    const/4 v2, -0x2

    if-eq v0, v2, :cond_2

    if-eqz v0, :cond_1

    goto :goto_0

    .line 73
    :cond_1
    iget-object p1, p1, Lcom/tencent/mm/opensdk/modelmsg/SendAuth$Resp;->code:Ljava/lang/String;

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/wxapi/h;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 74
    :cond_2
    invoke-direct {p0, v1}, Lcom/estrongs/android/pop/wxapi/h;->a(I)V

    :goto_0
    return-void
.end method

.method a(Lcom/tencent/mm/opensdk/modelpay/PayResp;)V
    .locals 2

    .line 49
    iget-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->c:Les/h00;

    .line 50
    iget v1, p1, Lcom/tencent/mm/opensdk/modelbase/BaseResp;->errCode:I

    if-nez v1, :cond_0

    .line 51
    new-instance v1, Lcom/estrongs/android/pop/wxapi/e;

    invoke-direct {v1, p1, v0}, Lcom/estrongs/android/pop/wxapi/e;-><init>(Lcom/tencent/mm/opensdk/modelpay/PayResp;Les/h00;)V

    invoke-direct {p0, v1}, Lcom/estrongs/android/pop/wxapi/h;->a(Lcom/estrongs/android/pop/wxapi/h$d;)V

    goto :goto_0

    :cond_0
    if-eqz v0, :cond_1

    const/4 p1, -0x4

    .line 52
    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, p1, v1}, Les/h00;->a(ILjava/lang/String;)V

    :cond_1
    :goto_0
    const/4 p1, 0x0

    .line 53
    iput-object p1, p0, Lcom/estrongs/android/pop/wxapi/h;->c:Les/h00;

    return-void
.end method

.method public a(Les/b00$i;)V
    .locals 1

    .line 103
    new-instance v0, Lcom/estrongs/android/pop/wxapi/h$b;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/wxapi/h$b;-><init>(Lcom/estrongs/android/pop/wxapi/h;Les/b00$i;)V

    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/wxapi/h;->a(Lcom/estrongs/android/pop/wxapi/h$d;)V

    return-void
.end method

.method public a(Les/g00;)V
    .locals 1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->b:Lcom/tencent/mm/opensdk/openapi/IWXAPI;

    invoke-interface {v0}, Lcom/tencent/mm/opensdk/openapi/IWXAPI;->isWXAppInstalled()Z

    move-result v0

    if-nez v0, :cond_0

    const p1, 0x7f110721

    .line 7
    invoke-static {p1}, Lcom/estrongs/android/ui/view/d;->a(I)V

    return-void

    .line 8
    :cond_0
    iput-object p1, p0, Lcom/estrongs/android/pop/wxapi/h;->a:Les/g00;

    .line 9
    new-instance p1, Lcom/tencent/mm/opensdk/modelmsg/SendAuth$Req;

    invoke-direct {p1}, Lcom/tencent/mm/opensdk/modelmsg/SendAuth$Req;-><init>()V

    const-string v0, "snsapi_userinfo"

    .line 10
    iput-object v0, p1, Lcom/tencent/mm/opensdk/modelmsg/SendAuth$Req;->scope:Ljava/lang/String;

    const-string v0, "es_wx_lg"

    .line 11
    iput-object v0, p1, Lcom/tencent/mm/opensdk/modelmsg/SendAuth$Req;->state:Ljava/lang/String;

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->b:Lcom/tencent/mm/opensdk/openapi/IWXAPI;

    invoke-interface {v0, p1}, Lcom/tencent/mm/opensdk/openapi/IWXAPI;->sendReq(Lcom/tencent/mm/opensdk/modelbase/BaseReq;)Z

    return-void
.end method

.method public synthetic a(Les/wk;)V
    .locals 1

    .line 18
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/o;->B()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/pop/wxapi/h;->a(Les/wk;Ljava/lang/String;)Lcom/estrongs/android/pop/wxapi/h$e;

    move-result-object p1

    .line 19
    new-instance v0, Lcom/estrongs/android/pop/wxapi/a;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/wxapi/a;-><init>(Lcom/estrongs/android/pop/wxapi/h;Lcom/estrongs/android/pop/wxapi/h$e;)V

    invoke-static {v0}, Lcom/estrongs/android/util/o;->d(Ljava/lang/Runnable;)V

    return-void
.end method

.method public a(Les/wk;Les/h00;)V
    .locals 1
    .annotation build Landroidx/annotation/UiThread;
    .end annotation

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->c:Les/h00;

    if-eqz v0, :cond_0

    const p1, 0x7f1104bc

    .line 14
    invoke-static {p1}, Lcom/estrongs/android/ui/view/d;->a(I)V

    return-void

    .line 15
    :cond_0
    iput-object p2, p0, Lcom/estrongs/android/pop/wxapi/h;->c:Les/h00;

    .line 16
    new-instance p2, Lcom/estrongs/android/pop/wxapi/f;

    invoke-direct {p2, p0, p1}, Lcom/estrongs/android/pop/wxapi/f;-><init>(Lcom/estrongs/android/pop/wxapi/h;Les/wk;)V

    .line 17
    new-instance p1, Ljava/lang/Thread;

    invoke-direct {p1, p2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {p1}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method public a()Z
    .locals 1

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/o;->b0()Z

    move-result v0

    return v0
.end method

.method public b()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    iput-object v0, p0, Lcom/estrongs/android/pop/wxapi/h;->c:Les/h00;

    return-void
.end method
